package com.mutouren.modules.org.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.InitializingBean;

import com.mutouren.common.entity.ValidState;
import com.mutouren.common.orm.spring.BaseService;
import com.mutouren.modules.org.model.Organization;

public interface OrganizationService extends BaseService<Organization>, InitializingBean {

	List<Organization> selectByParentId(int parentId);
	List<Organization> getParents(Organization organization, boolean isContainSelf);
	List<Organization> getChildren(int orgId, boolean isCascade, boolean isContainSelf, boolean isLoadChinesePath, ValidState displayLevel);
	Map<Integer, Organization> toMap(List<Organization> listOrganization);
	void loadChinesePath(List<Organization> listOrg);
}
